﻿using Data.Common;
using Data.Model;
using Data.ViewModel;

namespace DataAccess.BikeManage
{
    public interface ILockAddress
    {
        ResultInfo<lockaddress> GetLockAddress(int id);
        ResultInfo<PagingDataSet<lockaddress>> GetWarnLockAddress(int pageIndex, int pageSize, int threshold);
        ResultInfo<PagingDataSet<LockAddressView>> GetLockAddress(int pageIndex, int pageSize, int areaid, string addressName);
        bool SetLockAddressThreshold(int id, int threshold);
        ResultInfo<int> CreateOrUpdateLockAddress(lockaddress address);
        ResultInfo<bool> DeleteLockAddress(int id);
    }
}
